package Main;

import Controller.ControllerClass;
import Model.ModelClass;
import View.ViewClass;

public class RunMVC {
	private int start_value = 10;

	public RunMVC() {

		//create Model and View
		ModelClass myModel 	= new ModelClass();
		ViewClass myView 	= new ViewClass();

		//tell Model about View. 
		myModel.addObserver(myView);

		//create Controller. tell it about Model and View, initialise model
		ControllerClass myController = new ControllerClass();
		myController.addModel(myModel);
		myController.addView(myView);
		myController.initModel(start_value);

		//tell View about Controller 
		myView.addController(myController);
		

	} //RunMVC()
}
